from block import Block
class FileBlockReader:
	_filename = None
	def __init__(self, filename):
		self._filename = filename
	def getNextBlockValue(self):
		res = []
		with open(self._filename, 'r') as fp:
			temp = fp.read().split("\n")[:-1]
			for t in temp:
				res.append(list(map(int, t.split(','))))

		return Block(res);


if __name__ == '__main__':
	fbr = FileBlockReader('file.txt')
	b = fbr.getNextBlockValue()
	b.print()